@mixin flexBoxHack($dir: row){
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -webkit-box-align: start;
    -moz-box-align: start;
    -webkit-box-orient: if($dir == row,horizontal,vertical);
    -moz-box-orient: if($dir == row,horizontal,vertical);
    -webkit-flex-direction: if($dir == row,row,column);
    flex-direction: if($dir == row,row,column);
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}

@mixin flexItemHack($box-grow: 1,$box-shrink: 0){
    -webkit-box-flex: $box-grow;
    -moz-box-flex: $box-grow;
    -ms-box-flex: $box-grow;
    box-flex: $box-grow;
    -webkit-flex: $box-grow $box-shrink auto;
    flex: $box-grow $box-shrink auto;
}